import axios from 'axios'

export function getSongLyric (songId, callback) {
  axios('/vkey/lyric/fcgi-bin/fcg_query_lyric.fcg', {
    params: {
      nobase64: 1,
      musicid: songId,
      '-': 'jsonp1',
      g_tk: 5381,
      loginUin: 0,
      hostUin: 0,
      format: 'json',
      inCharset: 'utf8',
      outCharset: 'utf-8',
      notice: 0,
      platform: 'yqq.json',
      needNewCode: 0
    }
  }).then(response => {
    callback(response)
  }).catch(error => {
    callback(error)
  })
}